export interface LoginReturnData{
	nickname: string
    openid: string
    token:string
}

export interface TradeInfoProps {
	id: string,
	title: string,
	userName: string,
	infoOpenid: string,
	updateTime: string,
	price: string
	num: string
	onClick: ((id: string, infoOpenId: string) => void)
}

export interface ResUserProfileData {
	OpenID: string
	NickName: string,
	Avatar: string,
	Gender: string,
	City: string,
	Province: string,
	Country: string,
	Language: string,
	WxQRCode: string,
	WeChatPay: string,
	Brand: string,
	Token: string
}

export interface ResTradeInfoData {
	openId: string
	sdInfoId: string
	title: string
	price: number
	type: number
	num: number
	server: number
	brand: string
	status: number
	updateAt: number
}

export interface ResTradeInfoList {
	list: ResTradeInfoData[]
}

export interface ResOfferInfoData{
		openId: string,
		sdInfoId: string,
		title: string,
		price: string,
		type: number,
		num: number,
		server: number,
		status: number,
		brand: string,
		updateAt: string,
		offer_id: string,
		offer_price: string,
		offer_num: number,
		offer_type: number,
		sd_info_id: string,
		offer_user: string,
		sd_info_user: string,
		offer_status: number
}



export interface MyInfoProps {
	id: string,
	title: string,
	userName: string,
	updateTime: string,
	price: string
	num: string
	isShowFooter: boolean
	type?: string
	status: number,
}

export interface MySellInfoProps {
	id: string,
	title: string,
	userName: string,
	updateTime: string,
	price: string
	num: string
	isShowFooter: boolean
	type?: string
	status: number,
	server: number,
	onDele: (id: string) => void
	onUpdate: (id: string) => void
}

export interface MyBuyInfoProps {
	id: string,
	title: string,
	userName: string,
	updateTime: string,
	price: string
	num: string
	isShowFooter: boolean
	type?: string
	status: number,
	
}

export interface OfferWinProps {
	infoId: string,
	infoOpenId: string
	type: number,
	onOpen: () => void,
	onClose: () => void
}

export interface CustomNavBarProps {
	reload: () => void
	onSearch:(keyword:string)=>void
}

export interface MyOfferProps {
	id: string,
	title: string,
	userName: string,
	updateTime: string,
	price: string,
	num: string,
	myPrice: string,
	status: number,
	tradePrice?: number, //成交价
}

export interface OhterOfferProps {
	id: string,
	title: string,
	userName: string,
	updateTime: string,
	price: string,
	num: string,
	otherPrice: string,
	otherNum: string,
	offerId:string,
    infoId:string,
    dealUser:string,
    offerUser:string,
	status:string,
	type:number,
	initList:()=>void
	reOffer:(infoId:string,infoOpenId:string,type:number)=>void
	contact:(infoUser:string)=>void
}


